package com.leyou.common.exception;

import com.leyou.common.enums.ExceptionEnum;

/**
 * @program: leyou
 * @description: 自定义异常类
 * @author: NieMiao
 * @create: 2018-11-02 14:58
 **/
public class LyException extends RuntimeException {

    private Integer code;
    private String message;
    private ExceptionEnum exceptionEnum;

    public LyException(ExceptionEnum em) {
        this.exceptionEnum = em;
    }

    public ExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }

    public void setExceptionEnum(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }
}
